package com.ruoyi.service;

import com.ruoyi.bole.integral.domain.BoleIntegralApplication;
import com.ruoyi.domain.ProcessInstanceInfo;
import com.ruoyi.domain.TaskDTO;
import com.ruoyi.remark.domain.BoleRemarkProject;
import org.camunda.bpm.engine.task.Task;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

public interface ProcessService {
    //积分申请的任务
    public int startProcessForIntegral(BoleIntegralApplication boleRemarkProject, String processKey);
    //开始任务
    int startProcess(BoleRemarkProject boleRemarkProject, String processKey);
    //根据enging获取流程列表 审核
    List<TaskDTO> getRunningProcessInstances(String assignee);
    //审核通过一步
    String completeTask(String taskId, Map<String,Object> variables);
    
    

}
